import request from '@/utils/request'


//查询
export function caseList(data:any) {
	return request({
		url: '/case/database/stu/list',
		method: 'get',
		params: data
	})
}

// 


export function typeList(data:any) {
	return request({
		url: '/case/type/list',
		method: 'get',
		params: data
	})
}

// 加入收藏 


export function favoriteAdd(data:any) {
	return request({
		url: '/favorite/folder/add',
		method: 'POST',
	 data
	})
}

// 病例详情 


export function caseDetails(data:any) {
	return request({
		url: '/case/database/stu/details',
		method: 'get',
		params: data
	})
}
// 取消收藏 /favorite/folder/delete

export function favoriteDel(data:any) {
	return request({
		url: '/favorite/folder/delete',
		method: 'DELETE',
	params: data
	})
}
//  caseId 查询 病例讨论 


export function discussList(data:any) {
	return request({
		url: '/case/discuss/list',
		method: 'GET',
	params: data
	})
}

//  发送兵力套餐


export function discussAdd(data:any) {
	return request({
		url: '/case/discuss/add',
		method: 'POST',
data
	})
}


// 添加病例记录 /case/record/


export function caserecordAdd(data:any) {
	return request({
		url: '/case/record/add',
		method: 'GET',
params: data
	})
}


